\documentclass[12pt]{article}

\begin{document}

$$
  E = K [\cos(\theta) - \cos(\theta_0)]^2 
$$

\end{document}